package com.zyg.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 基础数据对象
 */
@Data
public class BaseModel implements Serializable {

    //主键
    private String id;

    //是否删除
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Boolean isDeleted;

    //租户id
    @TableField(fill = FieldFill.INSERT)
    private String lesseeId;

    //创建用户
    @TableField(fill = FieldFill.INSERT)
    private String createUserId;

    //创建用户
    @TableField(fill = FieldFill.INSERT)
    private String createUserName;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    //更新用户id
    @TableField(fill = FieldFill.UPDATE)
    private String updateUserId;

    //更新用户名称
    @TableField(fill = FieldFill.UPDATE)
    private String updateUserName;

    //更新时间
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
}
